#!/usr/bin/env python
#####################################
# Installation module for CrackMapExec
#####################################

# AUTHOR OF MODULE NAME
AUTHOR="David Kennedy (ReL1K), updated by Russ Swift (0xsalt)"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update CrackMapExec - pentesters AD tool"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
INSTALL_TYPE="GIT"

# LOCATION OF THE FILE OR GIT/SVN REPOSITORY
REPOSITORY_LOCATION="https://github.com/byt3bl33d3r/CrackMapExec"

# WHERE DO YOU WANT TO INSTALL IT
INSTALL_LOCATION="crackmapexec"

# DEPENDS FOR DEBIAN INSTALLS
DEBIAN="libssl-dev,libffi-dev,python-dev,build-essential,python-pip"

# DEPENDS FOR FEDORA INSTALLS
FEDORA="git"

# COMMANDS TO RUN AFTER
AFTER_COMMANDS="rm -rf /usr/local/lib/python2.7/dist-packages/cme,cd {INSTALL_LOCATION},pip install -r requirements.txt,git submodule init && git submodule update --recursive,cd {INSTALL_LOCATION},pip install pywerview,python setup.py install,pip install crackmapexec --upgrade"

# AUTOMATIC LAUNCH
LAUNCHER=""

# needed for install
BYPASS_UPDATE="YES"
